Method: \saffire\os.realpath()

Signature string os.realpath(string path);

Expands a path to its actual path. Will resolve things like . and .. and symlinks.

Arguments

path
The path to resolve

Notes:

  • If a path cannot be resolved, it will throw an IOException.

Examples:

path = os.realpath("~johndoe/saffire/../test.txt");
// /home/johndoe/test.txt